#pragma once
#include <functional>
#include <nice2d/action.h>

class DelayAction : public Action
{
public:
    DelayAction() = delete;
    DelayAction(std::function<void()> callback, float delay = 3.0f);
    virtual ~DelayAction();
public:
    float getDelay()const;
    void update(float deletaTime)override;
private:
    std::unique_ptr<class DelayActionData> data;
};
